#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package com.eci.${rootArtifactId};

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;


@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@EnableJpaRepositories(repositoryFactoryBeanClass = TheRepositoryFactoryBean.class)
@EntityScan(basePackageClasses = {ExampleApplication.class, Jsr310JpaConverters.class})
@EnableFeignClients(basePackages="com.eci")


@ComponentScan(value = "com.eci",excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX,pattern = "com.eci.${rootArtifactId}.feign.*")})
@EnableAsync
public class AdminApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(AdminApplication.class);
    }
}